package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-01-07
 */
@TableName("wz_user_message")
public class WzUserMessage extends Model<WzUserMessage> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户信息id
     */
    @TableId(value = "user_message_id", type = IdType.AUTO)
    private Long userMessageId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 推送类型;1-通知；
     */
    @TableField("send_type")
    private Integer sendType;
    /**
     * 类型:1-即时广告；2-广告审核；3-实名认证审核；4-线下充值;5-邀请码收益；
     */
    private Integer type;
    /**
     * 是否已读:0-未读；1-已读；
     */
    @TableField("is_read")
    private Integer isRead;
    /**
     * 跳转目标
     */
    @TableField("jump_target")
    private String jumpTarget;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getUserMessageId() {
        return userMessageId;
    }

    public void setUserMessageId(Long userMessageId) {
        this.userMessageId = userMessageId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getSendType() {
        return sendType;
    }

    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public String getJumpTarget() {
        return jumpTarget;
    }

    public void setJumpTarget(String jumpTarget) {
        this.jumpTarget = jumpTarget;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.userMessageId;
    }

    @Override
    public String toString() {
        return "WzUserMessage{" +
        "userMessageId=" + userMessageId +
        ", userCode=" + userCode +
        ", title=" + title +
        ", content=" + content +
        ", sendType=" + sendType +
        ", type=" + type +
        ", isRead=" + isRead +
        ", jumpTarget=" + jumpTarget +
        ", createTime=" + createTime +
        "}";
    }
}
